package com.hhkj.study.api.user.model.req;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import lombok.EqualsAndHashCode;

import javax.validation.constraints.NotNull;
import java.util.Date;

/**
 * @Author luowu
 * @Date 2024/10/14 涵 18:10:07
 */
@EqualsAndHashCode(callSuper = true)
@Data
public class ApiCustomerUserListenSaveReq extends ApiCustomerUserCourseBaseReq {

    /**
     * 视频观看时长s
     */
    @NotNull(message = "视频观看时长不能为空")
    private Long videoDuration;

    /**
     * 视频id
     */
    @NotNull(message = "视频id不能为空")
    private Long videoId;

    /**
     * 开始学习时间
     */
    @NotNull(message = "视频开始学习时间不能为空")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date startStudyTime;
    /**
     * 结束学习时间
     */
    @NotNull(message = "视频结束学习时间不能为空")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date endStudyTime;
}
